package com.zjs.jsp.status.mongodb;


import com.zjs.jsp.domain.stats.OrderStatus;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

public interface jsp_orderstatusRepository extends MongoRepository<OrderStatus, ObjectId>
{
    //jsp_locationMsg findTop1ByUserIDAndOrderByTimeDesc(String uid);


    OrderStatus findByPocAndSuAndOs(String poc, Integer su, String os);

    Boolean existsByPocAndSuAndOs(String poc, Integer su,Integer os);

    List<OrderStatus> findTop100BySuOrderByTsuAsc(Integer su);


    //List<jsp_locationMsg> findByUserIDInOrderByTimeDesc(List<String> uid);

}
